require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
// require("@chainlink/env-enc").config();
require("./tasks")
require("hardhat-deploy")
require("@nomicfoundation/hardhat-ethers");
require("hardhat-deploy-ethers");


/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
  solidity: "0.8.28",
  defaultNetwork: "hardhat",
  mocha: {
    timeout: 300000
  },
  networks: {
    sepolia: {
      url: process.env.ALCHEMY_URL,
      accounts: [process.env.PRIVATE_KEY, process.env.PRIVATE_KEY_2],
      chainId: 11155111
    }
  },
  etherscan: {
    apiKey: process.env.ETHER_SCAN_API_KEY,
    timeout: 20000 // 设置为 60 秒
  },
  sourcify: {
    enabled: true
  },

  // 这儿代表的意思就是可以用firstAccount   代替上面accounts中的process.env.PRIVATE_KEY  相当于取别名的意思
  namedAccounts: {
    firstAccount: {
      default: 0
    },
    secondAccount: {
      default: 1
    }
  },
};
